package com.studentexam.student.service.impl;

import com.studentexam.student.dao.PSTMapper;
import com.studentexam.student.model.PST;
import com.studentexam.student.service.PSTService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PSTServiceImpl implements PSTService {
    @Autowired
    private PSTMapper pstMapper;



    @Override
    public int addPST(PST pst) {
        int returnInt=0;
////        1.数据判断
//        int rolenameCount=roleMapper.getRolenameCount(role.getRolename());
//        if (rolenameCount<1){
////        2.添加数据
//            int addRolenameInt=roleMapper.insertRole(role);
////        3.设置返回值
//            returnInt=addRolenameInt;
//        }else returnInt=-1;
        return returnInt;
    }


}
